<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"  href="/styles/general.css"/>
<link rel="stylesheet" type="text/css" href="/styles/main.css"/>
<link rel="stylesheet" type="text/css" href="/styles/validator.css"/>
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
	$("#compoundid").formValidator({onshow:"请输入化合物编号",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#referencesurl").formValidator({onshow:"请输入地址",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#orderid").formValidator({onshow:"请输入排序",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
});
</script>
<title></title>
</head>
<body>
<h1>
<span class="action-span"><a href="/compoundreference/index/compoundid/{$compoundid}">管理参考文献</a></span>
<span class="action-span1"> 添加参考文献</span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/compoundreference/add/compoundid/{$compoundid}" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <table width="100%" id="table_form">
      <!-- 
      <tr>
        <td class="label">化合物编号：</td>
        <td>
			{form hidden * compoundid compoundid $compoundid}
        </td>
        <td><div id='compoundidTip' style="width:250px"></div></td>
      </tr>
       -->
      <tr>
        <td class="label">地址：</td>
        <td>
        	{form hidden * compoundid compoundid $compoundid}
			{form sinafile * referencesurl referencesurl}
        </td>
        <td><div id='referencesurlTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">排序：</td>
        <td>
			{form text * orderid orderid 1}
        </td>
        <td><div id='orderidTip' style="width:250px"></div></td>
      </tr>
  </table>  
   <div class="button-div">
        <input type="submit" value="&nbsp;确&nbsp;定&nbsp;" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" />
   </div>
  </form>
</div>
{template 'footer.html'}
</body>
</html>